Skip to content

ComboBox

Sub classes

Name Children Inherits
EnumComboBox
prettyqt.custom_widgets.editors.enumcombobox
ComboBox presenting options from a python Enum.
LocaleEdit
prettyqt.custom_widgets.editors.localeedit
    ColorComboBox
    prettyqt.custom_widgets.editors.colorcombobox
      MultiComboBox
      prettyqt.custom_widgets.multicombobox
      ComboBox allowing multiple-choice selection.
        ChoiceEditor
        prettyqt.custom_widgets.pydanticform
        Combo box over a fixed list of Python values (Literal / Enum / mapping).

          Base classes

          Name Children Inherits
          ComboBoxMixin
          prettyqt.widgets.combobox
          Combobox that lets the user select a font family.
          QComboBox
          PySide6.QtWidgets
          QComboBox(self, /, parent: PySide6.QtWidgets.QWidget | None \= None, *, editable: bool | None \= None, count: int | None \= None, currentText: str | None \= None, currentIndex: int | None \= None, currentData: Any | None \= None, maxVisibleItems: int | None \= None, maxCount: int | None \= None, insertPolicy: PySide6.QtWidgets.QComboBox.InsertPolicy | None \= None, sizeAdjustPolicy: PySide6.QtWidgets.QComboBox.SizeAdjustPolicy | None \= None, minimumContentsLength: int | None \= None, iconSize: PySide6.QtCore.QSize | None \= None, placeholderText: str | None \= None, duplicatesEnabled: bool | None \= None, frame: bool | None \= None, modelColumn: int | None \= None, labelDrawingMode: PySide6.QtWidgets.QComboBox.LabelDrawingMode | None \= None) -> None

          ⋔ Inheritance diagram

          graph TD
            2460391555["widgets.ComboBox"]
            1955118198["widgets.ComboBoxMixin"]
            829357528["widgets.WidgetMixin"]
            3227531497["core.ObjectMixin"]
            2751680898["builtins.object"]
            625385617["gui.PaintDeviceMixin"]
            1844689747["QtWidgets.QComboBox"]
            3620195106["QtWidgets.QWidget"]
            3984060476["QtCore.QObject"]
            37984305["Shiboken.Object"]
            673956333["QtGui.QPaintDevice"]
            1955118198 --> 2460391555
            829357528 --> 1955118198
            3227531497 --> 829357528
            2751680898 --> 3227531497
            625385617 --> 829357528
            2751680898 --> 625385617
            1844689747 --> 2460391555
            3620195106 --> 1844689747
            3984060476 --> 3620195106
            37984305 --> 3984060476
            2751680898 --> 37984305
            673956333 --> 3620195106
            37984305 --> 673956333

          🛈 DocStrings

          Bases: ComboBoxMixin, QComboBox

          Combined button and popup list.

          Source code in prettyqt/widgets/combobox.py
          class ComboBox(ComboBoxMixin, widgets.QComboBox):
              """Combined button and popup list."""
          

          :fa-brands-github: Show source on GitHub